package com.tms.firtsp.common;

import lombok.Getter;
import lombok.Setter;

/**
 * 增强我们的运行时异常，称为结果异常
 */
@Getter
@Setter
public class RException  extends  Exception{

    private Integer code;


    public RException(Integer code,String msg) {
        super(msg);
        this.code = code;


    }

    public RException(REnum rEnum) {

        super(rEnum.getMsg());
        this.code = rEnum.getCode();


    }

}
